package com.mk.cloud.pt;

import act.controller.Controller;
import act.job.Every;
import com.mk.cloud.common.domain.POrder;
import com.mk.cloud.common.interceptor.cookie.CookieService;
import com.mk.cloud.common.util.DateUtils;

import javax.inject.Inject;

public class TimeTaskService extends CookieService {

    @Inject
    private POrder.Mapper orderMapper;

//    @Every("300s")
    public void closeOrder(){
        //定时关闭订单
        orderMapper.closeOrder(DateUtils.subCurrSecond(60*60));
    }


}
